const path = require('path')

module.exports = {
  // publicPath: './',
  outputDir: '../view',
  assetsDir: 'view',
  productionSourceMap: false,
  devServer: {
    port: 8080,
    proxy: {
      '/v1':{
        target: 'http://localhost:8088',
        changeOrigin: true,
        pathRewrite:{
          '/v1': '/v1'
        }
      },
      '/file':{
        target: 'http://localhost:8088',
        changeOrigin: true,
        pathRewrite:{
          '/file': '/file'
        }
      },
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.join(__dirname, 'src')
      }
    }
  }
}
